package org.ragdollcat.first.api.search.baidu;



import java.util.List;

public class GetImageFacade {

    /**
     * 得到以图搜图的结果列表
     * @param url   目标图片的url
     * @return  搜图的结果
     */
    public static List<ImageSearchResult> getImages(String url){
        String imagePageUrl = GetImagePageUrlApi.getImagePageUrl(url);
        String imageFirstUrl = GetImageFirstUrlApi.getImageFirstUrl(imagePageUrl);
        return GetImageListApi.getImageList(imageFirstUrl);
    }
}
